package cn.fintecher.pangolin.entity.elastic;

import cn.fintecher.pangolin.common.model.WebSocketMessageModel;
import cn.fintecher.pangolin.common.utils.Constants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @Auther: xiaqun
 * @Description: websocket消息实体
 * @Date: 10:25 2019/8/30
 */

@Data
@Document(indexName = Constants.WEB_SOCKET_MESSAGE, type = Constants.WEB_SOCKET_MESSAGE, shards = 1, replicas = 0)
@Api(value = "websocket消息实体", description = "websocket消息实体")
public class WebSocketMessage {
    @Id
    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "消息接收人")
    private String userId;

    @ApiModelProperty(value = "消息实体")
    private WebSocketMessageModel webSocketMessageModel;
}
